
export const PARAMS_ENTERPRISE = [
    {
        type: "a-input",
        field: "name",
        title: "请输入客户名称",
        value: "",
        props: { placeholder: "请输入客户名称" }
    },
    {
        type: "a-input",
        field: "parkName",
        title: "请输入服务公司",
        value: "",
        props: { placeholder: "请输入服务公司" }
    },
    // {
    //     type: "a-input",
    //     field: "customerManager",
    //     title: "请输入客户经理",
    //     value: "",
    //     props: { placeholder: "请输入客户经理" }
    // },
    {
        type: "a-input",
        field: "contactPhone",
        title: "请输入手机号",
        value: "",
        props: { placeholder: "请输入手机号" }
    },
    {
        type: 'a-button',
        field: 'search',
        props: {
            type: 'primary',
            icon: "search"
        },
        children: ['搜索'],
        emit: ['click'],
        emitPrefix: 'btn-search',
    },
    {
        type: 'a-button',
        field: 'reset',
        props: {
            type: 'primary',
            icon: "setting"
        },
        children: ['重置'],
        emit: ['click'],
        emitPrefix: 'btn-reset',
    },
]
export const COLUMNS_ENTERPRISE = [
    {
        title: '客户名称',
        dataIndex: 'name',
        width: 240
    },
    {
        title: "登录账号",
        dataIndex: "loginAccount",
    },
    {
        title: '服务公司',
        dataIndex: 'associateParkName'
    },
    {
        title: '客户经理',
        dataIndex: 'customerManager',
        width: 160,
    },
    {
        title: '渠道名称',
        dataIndex: 'channelName'
    },
    {
        title: '手机号码',
        dataIndex: 'contactPhone'
    },
    {
        title: '残疾人业务',
        dataIndex: 'disabledBusiness',
        customRender: (text, row, index) => {
            if (text == '1') {
                return '有'
            } else if (text == '0'){
                return '没有'
            }
            return ''
        },
    },
    {
        title: '合作状态',
        dataIndex: 'cooperateStatus',
        width: 140,
        customRender: (text, row, index) => {
            if (row.cooperateStatus == '1') {
                return '待开始合作'
            } else if (row.cooperateStatus == '2') {
                return '合作中'
            } else if (row.cooperateStatus == '3') {
                return '合作暂停'
            } else if (row.cooperateStatus == '4') {
                return '合作终止'
            }
            return ''
        },
    },
    {
        title: '是否禁用登录',
        dataIndex: 'loginAccountStatus',
        width: 160,
        scopedSlots: { customRender: 'loginAccountStatus' }
    },
    // {
    //     title: '是否加入公共池',
    //     dataIndex: 'isPublic',
    //     width: 160,
    //     scopedSlots: { customRender: 'isPublic' }
    // },
    {
        title: '创建时间',
        dataIndex: 'createdTime',
    },
    {
        title: '操作',
        dataIndex: 'action',
        fixed: 'right',
        width: 240,
        scopedSlots: { customRender: 'action' }
    },
]

// 开户配置
export const PARAMS_OPEN = [
    {
        type: "a-input",
        field: "name",
        title: "公司名称",
        value: "",
        props: {placeholder:"请输入公司名称"}
    },
    {
        type: "RangePicker",
        field: "time",
        title: "日期范围",
        value: [],
        props: {
            type: "daterange",
            dateFormat: "YYYY-MM-DD",
            "start-placeholder":"开始日期",
            "end-placeholder":"结束日期",
        },
        emit: ['change'],
        emitPrefix: 'btn-time',
    },
    {
        type: "select",
        field: "accountStatus",
        title: "开户状态",
        value: "",
        options: [{value:'',label:'全部'},{ value: 1, label: '已开户' }, { value: 3, label: '已销户' }],
        props: { placeholder: "请选择开户状态" }
    },
    {
        type: 'a-button',
        field: 'search',
        props: {
            type: 'primary',
            icon: "search"
        },
        children: ['搜索'],
        emit: ['click'],
        emitPrefix: 'btn-search',
    },
    {
        type: 'a-button',
        field: 'reset',
        props: {
            type: 'primary',
            icon: "setting"
        },
        children: ['重置'],
        emit: ['click'],
        emitPrefix: 'btn-reset',
    },
]